#include "card.h"


#include <stdio.h>

static FILE *card;

bool card_init()
{
	card = fopen("e:/card.dump", "rb");

	return (card != NULL);
}

void card_setSector(u32 sector)
{
	fseek(card, sector * 512, SEEK_SET);
}

u8 card_read()
{
	u8 v;

	fread(&v, 1, 1, card);

	return v;
}